package com.orange.wwwapi.controller.activity;

import com.orange.core.service.activity.ActivityService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>ClassName:ActivityPayCallBackController</p>
 * <p>Description: 活动支付回调</p>
 * <p>Author: lwm</p>
 * <p>Date: 2025/7/13 16:43</p>
 */
@Slf4j
@RequiredArgsConstructor
@RestController
@RequestMapping("/activity/pay/notify")
public class ActivityPayCallBackController {

    private final ActivityService activityService;

    /**
     * 活动-微信支付回调
     * @param notifyResutl
     * @return
     */
    @PostMapping("/wechat")
    public String wechatPayNotify(@RequestBody String notifyResutl){
        log.info("活动-微信支付回调通知：{}",notifyResutl);
        return activityService.wechatPayNotify(notifyResutl);
    }

    /**
     * 活动-微信退款回调
     * @param notifyResutl
     * @return
     */
    /*@PostMapping("/refund")
    public String wechatRefundNotify(@RequestBody String notifyResutl){
        log.info("活动-微信退款回调通知：{}",notifyResutl);
        return activityService.wechatRefundNotify(notifyResutl);
    }*/
}
